<!DOCTYPE html>
<HTML>
<HEAD><meta name="viewport" content="width=device-width, initial-scale=1">
<Title>XYChart.addLineLayer3</Title>
<link type='text/css' rel='Stylesheet' href="maxchartapi.css" />
</HEAD>
<body bgcolor="#FFFFFF" text="#000000" topmargin="0" leftmargin="0" rightmargin="0" marginwidth="0" marginheight="0">

<p class="heading0">ChartDirector 7.0 (Java Edition)</p>
<p class="heading1"><a href="XYChart.htm">XYChart</a>.<wbr>addLineLayer3</p>
<hr class="separator">
<p class="heading2a">Usage</p>
<div class="content">
public LineLayer addLineLayer3(DataAccelerator fastDB, String seriesId [, int color [, String name ]])
</div>
<p class="heading2">Description</p>
<div class="content">
Adds a line layer using data from a <a href="DataAccelerator.htm">DataAccelerator</a>.<br><br>
The LineLayer created using this method will use only the data series provided by the DataAccelerator. It does not support adding more data sets, that is, <a href="Layer.addDataSet.htm">Layer.addDataSet</a> or <a href="Layer.setXData.htm">Layer.setXData</a> should not be used. Additional LineLayer objects should be used to plot other data series.
</div>
<p class="heading2">Arguments</p>
<div class="content">
<div style="width:100%;box-sizing:border-box;">
<table border="1" cellpadding="5" cellspacing="0" width="100%"> 
<tr>
<th width="19%">Argument</th><th width="19%">Default</th><th>Description</th>
</tr>
<tr>
<td>fastDB</td><td>(Mandatory)</td><td>The <a href="DataAccelerator.htm">DataAccelerator</a> object that provides the x and y data values.</td></tr><tr><td>seriesId</td><td>(Mandatory)</td><td>The id of the data series. The DataAccelerator will provide the x data series and the y data series with the specified id to the LineLayer.</td></tr><tr><td>color</td><td>-1</td><td>The color to draw the line. -1 means that the color is automatically selected from the palette.</td></tr><tr><td>name</td><td>""</td><td>The name of the data series. The name will be used in the legend box, if one is available. An empty string means the data set has no name.</td>
</tr>
</table>
</div>
</div>
<p class="heading2">Return Value</p>
<div class="content">
A <a href="LineLayer.htm">LineLayer</a> object representing the line layer created.
</div>
<br><hr class="separator">
<div class="copyright">&copy; 2022 Advanced Software Engineering Limited. All rights reserved.</div>
</body>
</HTML>
